import request from '@/utils/request'

// 查询设备调转记录列表
export function listTransferRecords(query) {
  return request({
    url: '/equipment/transferRecords/list',
    method: 'get',
    params: query
  })
}

// 查询设备调转记录所有列表
export function listAllTransferRecords(query) {
  return request({
    url: '/equipment/transferRecords/listAll',
    method: 'get',
    params: query
  })
}

// 查询设备调转记录详细
export function getTransferRecords(id) {
  return request({
    url: '/equipment/transferRecords/getInfo/' + id,
    method: 'get'
  })
}

// 新增设备调转记录
export function addTransferRecords(data) {
  return request({
    url: '/equipment/transferRecords/add',
    method: 'post',
    data: data
  })
}

// 修改设备调转记录
export function updateTransferRecords(data) {
  return request({
    url: '/equipment/transferRecords/edit',
    method: 'post',
    data: data
  })
}

// 删除设备调转记录
export function delTransferRecords(id) {
  return request({
    url: '/equipment/transferRecords/remove/' + id,
    method: 'get'
  })
}
